﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using log4net;
using Botwave.Log;
using LAMSDK.IO;
using System.Xml.Linq;

namespace LAMSDK.web.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            //Logger.Write("测试");
            //Logger.Write("用户登录", "测试");
            //Logger.Write("用户登录", "正常操作", "测试");
            //Logger.Write("System", "用户登录", "正常操作", "测试");
            //Logger.Write(DateTime.Now.AddSeconds(-1), "System", "用户登录", "正常操作", "测试");
            //string error="";
            //Zip.ZipDirectory(@"", @"App_Data\Protected\Log\Info\2012-05", out error);
            //DirectoryHelper.Remove(@"App_Data\Protected\Log\Info\2012-05");

            //XDocument config = XDocument.Load("~/Config/hh.config");
            //var c = from a in config.Root.Elements("FileSqlmenu")
            //        where a.Element("id").Value=="1"
            //        select new
            //        {
            //            title1=a.Element("title1").Value,
            //            title2 = a.Element("title2").Value,
            //            title3 = a.Element("title3").Value,
            //            Bacldate=a.Element("Backdate").Value
            //        };

            ViewBag.Message = null+"";
            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
